package com.salts.Dao;

import com.salts.domain.po.ShoppingCar;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
@Repository//交由Spring容器管理
public interface ShoppingCarMapper {
    Integer insert(ShoppingCar shoppingCarPo);

    List<ShoppingCar> query(Integer userId);


    ShoppingCar queryCarInfo(ShoppingCar shoppingCarPo);

    Integer updateById(ShoppingCar shoppingCar);

    Integer deleteById(ShoppingCar shoppingCar);

    Integer deleteByIds(Map<String, Object> paramMap);

    Integer updateIsFlagById(ShoppingCar shoppingCar);
}
